convert sorted array to binary search tree programming question